package com.taoym.voucher.admin.entity.dto;

import io.swagger.annotations.ApiParam;
import lombok.Data;

import javax.validation.constraints.Email;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @coder taoym
 * @datetime 2021/7/8 8:57
 * @desc
 */
@Data
public class SysUpdateUserDTO implements Serializable {
    @ApiParam(value = "聚推客apiKey")
    @NotBlank(message = "聚推客apiKey不能为空")
    private String apiKey;
    @ApiParam(value = "聚推客pubId")
    @NotNull(message = "不能为空")
    private Integer pubId;
    @ApiParam(value = "小程序appId")
    @NotBlank(message = "小程序appId不能为空")
    private String appId;
    @ApiParam(value = "小程序密钥")
    @NotBlank(message = "小程序密钥不能为空")
    private String appSecret;
    @ApiParam(value = "email")
    @NotBlank(message = "邮箱不能为空")
    @Email(message = "邮箱格式错误")
    private String email;
    @ApiParam(value = "可分配佣金率")
    @NotBlank(message = "可分配佣金率不能为空")
    private String distRate;
    @ApiParam(value = "队员佣金率")
    @NotBlank(message = "队员佣金率不能为空")
    private String teamRate;
    @ApiParam(value = "密码")
    private String password;
}
